import request from '@/utils/http'

// 发消息接口
export const getNewchatAPI=({friendId,friendNodes,head})=>{
  return request({
    url:'/chat/add',
    method:'POST',
    data:{
      friendId,
      friendNodes,
      head,
    }
  })
}


// 获取chat数据列表
export const getChatInfoAPI=(friendId)=> {
  return request({
    url: '/chat/list',
    params: {
      friendId
    }
  })
}